{extend name="apps/common/view/admin.tpl" /}
<!-- -->
{block name="header_meta"}
<title>{:lang("video_index")}－{:lang('appName')}</title>
{/block}
<!-- -->
{block name="main"}
<h6 class="border-bottom pb-2 text-purple">
  {:lang("video_index")}
</h6>
{:DcBuildForm([
    'name'       => 'video_index',
    'class'      => 'bg-white px-2 py-2',
    'action'     => DcUrl('admin/video/update', 'module=common', ''),
    'method'     => 'post',
    'submit'     => lang('submit'),
    //'close'    => lang('close'),
    'reset'      => lang('reset'),
    'disabled'   => false,
    'ajax'       => true,
    //'callback' => 'daicuo.form.test',
    'items'      => [
        [
            'type'=>'switch',
            'name'=>'video_in',
            'id'=>'video_in',
            'title'=>lang('video_in'),
            'tips'=>'',
            'value'=>config('common.video_in'),
            'readonly'=>false,
            'disabled'=>false,
            'required'=>false,
            'class'=>'row form-group',
            'class_left'=>'col-md-2',
            'class_right'=>'col-auto',
            'class_right_control'=>'',
            'class_tips'=>'',
        ],
        [
            'type'=>'custom',
            'name'=>'video_size',
            'id'=>'video_size',
            'title'=>lang('video_size'),
            'placeholder'=>'',
            'tips'=>'',
            'value'=>config('common.video_size'),
            'option'=>['16by9'=>lang('video_size_16by9'),'21by9'=>lang('video_size_21by9'),'4by3'=>lang('video_size_4by3'),'1by1'=>lang('video_size_1by1')],
            'readonly'=>false,
            'disabled'=>false,
            'required'=>false,
            'class'=>'row form-group',
            'class_left'=>'col-md-2',
            'class_right'=>'col-auto',
            'class_right_control'=>'',
            'class_tips'=>'',
        ],		    
        [
            'type'=>'text',
            'name'=>'video_ai',
            'id'=>'video_ai',
            'title'=>lang('video_ai'),
            'placeholder'=>lang('video_ai_placeholder'),
            'tips'=>'',
            'value'=>config('common.video_ai'),
            'readonly'=>false,
            'disabled'=>false,
            'required'=>false,
            'class'=>'row form-group',
            'class_left'=>'col-md-2',
            'class_right'=>'col-md-6',
            'class_right_control'=>'',
            'class_tips'=>'',
        ],
        [
            'type'=>'text',
            'name'=>'video_frontUrl',
            'id'=>'video_frontUrl',
            'title'=>lang('video_frontUrl'),
            'placeholder'=>lang('video_frontUrl_placeholder'),
            'tips'=>'',
            'value'=>config('common.video_frontUrl'),
            'readonly'=>false,
            'disabled'=>false,
            'required'=>false,
            'class'=>'row form-group',
            'class_left'=>'col-md-2',
            'class_right'=>'col-md-6',
            'class_right_control'=>'',
            'class_tips'=>'',
        ],
        [
            'type'=>'text',
            'name'=>'video_frontTime',
            'id'=>'video_frontTime',
            'title'=>lang('video_frontTime'),
            'placeholder'=>lang('video_frontTime_placeholder'),
            'tips'=>'',
            'value'=>config('common.video_frontTime'),
            'readonly'=>false,
            'disabled'=>false,
                'required'=>false,
            'class'=>'row form-group',
            'class_left'=>'col-md-2',
            'class_right'=>'col-md-6',
            'class_right_control'=>'',
            'class_tips'=>'',
        ],
        [
            'type'=>'text',
            'name'=>'video_endUrl',
            'id'=>'video_endUrl',
            'title'=>lang('video_endUrl'),
            'placeholder'=>lang('video_endUrl_placeholder'),
            'tips'=>'',
            'value'=>config('common.video_endUrl'),
            'readonly'=>false,
            'disabled'=>false,
            'required'=>false,
            'class'=>'row form-group',
            'class_left'=>'col-md-2',
            'class_right'=>'col-md-6',
            'class_right_control'=>'',
            'class_tips'=>'',
        ],		
        [
            'type'=>'text',
            'name'=>'video_endTime',
            'id'=>'video_endTime',
            'title'=>lang('video_endTime'),
            'placeholder'=>lang('video_endTime_placeholder'),
            'tips'=>'',
            'value'=>config('common.video_endTime'),
            'readonly'=>false,
            'disabled'=>false,
            'required'=>false,
            'class'=>'row form-group',
            'class_left'=>'col-md-2',
            'class_right'=>'col-md-6',
            'class_right_control'=>'',
            'class_tips'=>'',
        ],
        [
            'type'=>'text',
            'name'=>'video_pause',
            'id'=>'video_pause',
            'title'=>lang('video_pause'),
            'placeholder'=>lang('video_pause_placeholder'),
            'tips'=>'',
            'value'=>config('common.video_pause'),
            'readonly'=>false,
            'disabled'=>false,
            'required'=>false,
            'class'=>'row form-group',
            'class_left'=>'col-md-2',
            'class_right'=>'col-md-6',
            'class_right_control'=>'',
            'class_tips'=>'',
        ],
        [
            'type'=>'text',
            'name'=>'video_buffer',
            'id'=>'video_buffer',
            'title'=>lang('video_buffer'),
            'placeholder'=>lang('video_buffer_placeholder'),
            'tips'=>'',
            'value'=>config('common.video_buffer'),
            'readonly'=>false,
            'disabled'=>false,
            'required'=>false,
            'class'=>'row form-group',
            'class_left'=>'col-md-2',
            'class_right'=>'col-md-6',
            'class_right_control'=>'',
            'class_tips'=>'',
        ],
        [
            'type'=>'hidden',
            'name'=>'video_advUnit',
            'id'=>'video_advUnit',
            'title'=>lang('video_advUnit'),
            'placeholder'=>lang('video_advUnit_placeholder'),
            'tips'=>lang('video_advUnit_tips'),
            'value'=>config('common.video_advUnit'),
            'readonly'=>false,
            'disabled'=>false,
            'required'=>false,
            'class'=>'row form-group',
            'class_left'=>'col-md-2',
            'class_right'=>'col-md-6',
            'class_right_control'=>'',
            'class_tips'=>'',
        ],
    ]
])}
{/block}